package com.yxy.model;


import lombok.Data;
import tk.mybatis.mapper.annotation.KeySql;
import tk.mybatis.mapper.code.ORDER;

import java.util.Date;
import java.math.BigDecimal;

import javax.persistence.*;


@Data
@Entity
@Table(name = "table_leave",schema = "")
public class TableLeave {

  //null
  @Id
  @KeySql(useGeneratedKeys = true,sql = "SELECT @@IDENTITY",order = ORDER.AFTER)
  @Column(name = "id")
  private Long id;

  //1.事假 2.病假 3.年假 4.调休 5.婚假 6.丧假 7.产假
  @Column(name = "leave_type")
  private Long leaveType;

  //请假开始时间
  @Column(name = "start_date")
  private String startDate;

  //请假结束时间
  @Column(name = "end_date")
  private String endDate;

  //部门名称
  @Column(name = "department_name")
  private String departmentName;

  //请假人
  @Column(name = "user_name")
  private String userName;

  //请假天数
  @Column(name = "leave_day_count")
  private BigDecimal leaveDayCount;

  //审批人
  @Column(name = "approve_name")
  private String approveName;

  //部分请假的文件地址
  @Column(name = "leave_file_url")
  private String leaveFileUrl;

  //1.审核通过  0 待批准 2 不通过
  @Column(name = "status")
  private Long status;

  //null
  @Column(name = "create_date")
  private Date createDate;

  //null
  @Column(name = "create_user_id")
  private Long createUserId;

  //null
  @Column(name = "create_user_name")
  private String createUserName;

  //null
  @Column(name = "update_date")
  private Date updateDate;

  //null
  @Column(name = "update_user_id")
  private Long updateUserId;

  //null
  @Column(name = "update_user_name")
  private String updateUserName;

  //null
  @Column(name = "tenant_id")
  private Long tenantId;


}
